package cn.itcast.service.stat.impl;

import cn.itcast.dao.stat.StatDao;
import cn.itcast.service.stat.StatService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service
public class StatServiceImpl implements StatService {


    @Autowired
    private StatDao statDao;


    // 厂家销售
    @Override
    public List<Map> findFactoryCharts(String companyId) {
        return statDao.findFactoryCharts(companyId);
    }

    // 厂家销量
    @Override
    public List<Map> findSellCharts(String companyId) {
        return statDao.findSellCharts(companyId);
    }


    // 系统访问压力
    @Override
    public List<Map> findOnlineCharts(String companyId) {
        return statDao.findOnlineCharts(companyId);
    }

    //市场价格统计
    @Override
    public List<Map> findHighestCharts(String companyId) {
        return statDao.findHighestCharts(companyId);
    }
    //公司部门人数统计
    @Override
    public List<Map> findPeopleCharts(String companyId) {
        return statDao.findPeopleCharts(companyId);
    }
    //每个人的购销合同签订
    @Override
    public List<Map> findSignedCharts(String companyId) {
        return statDao.findSignedCharts(companyId);
    }
}
